/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * InformacionReserva.java
 *
 * Created on 23/06/2010, 09:42:11 PM
 */

package CapaGrafica;

/**
 *
 * @author Maria
 */
public class InformacionReserva extends javax.swing.JFrame {

    /** Creates new form InformacionReserva */
    public InformacionReserva(String datosReserva[]) {
        initComponents();
        jTFfechaIngreso.setText(datosReserva[1]);
        jTFfechaEgreso.setText(datosReserva[2]);
        jTFhabitacion.setText(datosReserva[3]);
        jTFpersonas.setText(datosReserva[4]);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLfechaIngreso = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLhabitacion = new javax.swing.JLabel();
        jLpersonas = new javax.swing.JLabel();
        jLinformacion = new javax.swing.JLabel();
        jTFhabitacion = new javax.swing.JTextField();
        jTFfechaIngreso = new javax.swing.JTextField();
        jTFfechaEgreso = new javax.swing.JTextField();
        jTFpersonas = new javax.swing.JTextField();
        jBcerrar = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        setLocationByPlatform(true);

        jLfechaIngreso.setText("Fecha entrada:");
        jLfechaIngreso.setName("jLfechaIngreso"); // NOI18N

        jLabel1.setText("Fecha salida:");
        jLabel1.setName("jLabel1"); // NOI18N

        jLhabitacion.setText("Habitacion:");
        jLhabitacion.setName("jLhabitacion"); // NOI18N

        jLpersonas.setText("Acompanantes:");
        jLpersonas.setName("jLpersonas"); // NOI18N

        jLinformacion.setText("Informacion");
        jLinformacion.setName("jLinformacion"); // NOI18N

        jTFhabitacion.setText("jTextField1");
        jTFhabitacion.setName("jTFhabitacion"); // NOI18N

        jTFfechaIngreso.setText("jTextField1");
        jTFfechaIngreso.setName("jTFfechaIngreso"); // NOI18N

        jTFfechaEgreso.setText("jTextField2");
        jTFfechaEgreso.setName("jTFfechaEgreso"); // NOI18N

        jTFpersonas.setText("jTextField1");
        jTFpersonas.setName("jTFpersonas"); // NOI18N

        jBcerrar.setText("Cerrar");
        jBcerrar.setName("jBcerrar"); // NOI18N
        jBcerrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBcerrarActionPerformed(evt);
            }
        });

        jSeparator1.setName("jSeparator1"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(275, Short.MAX_VALUE)
                .addComponent(jBcerrar)
                .addGap(62, 62, 62))
            .addGroup(layout.createSequentialGroup()
                .addGap(39, 39, 39)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLinformacion)
                        .addContainerGap())
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jLfechaIngreso)
                            .addContainerGap())
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLhabitacion)
                                .addContainerGap())
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel1)
                                    .addComponent(jLpersonas))
                                .addGap(50, 50, 50)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTFpersonas, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                                    .addComponent(jTFhabitacion, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                                    .addComponent(jTFfechaEgreso, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                                    .addComponent(jTFfechaIngreso, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE))
                                .addGap(88, 88, 88))))))
            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(28, 28, 28)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLinformacion)
                .addGap(20, 20, 20)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLfechaIngreso)
                    .addComponent(jTFfechaIngreso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jTFfechaEgreso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLhabitacion)
                    .addComponent(jTFhabitacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(17, 17, 17)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLpersonas)
                    .addComponent(jTFpersonas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                .addComponent(jBcerrar)
                .addGap(47, 47, 47))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBcerrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBcerrarActionPerformed
      this.dispose();  // TODO add your handling code here:
    }//GEN-LAST:event_jBcerrarActionPerformed

    /**
    * @param args the command line arguments
    */
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBcerrar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLfechaIngreso;
    private javax.swing.JLabel jLhabitacion;
    private javax.swing.JLabel jLinformacion;
    private javax.swing.JLabel jLpersonas;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextField jTFfechaEgreso;
    private javax.swing.JTextField jTFfechaIngreso;
    private javax.swing.JTextField jTFhabitacion;
    private javax.swing.JTextField jTFpersonas;
    // End of variables declaration//GEN-END:variables

}
